<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>
    {% block title %}
	{% endblock %}
</title>

<meta name="author" content="DeathGhost" />
<link rel="stylesheet" type="text/css" href="/static/backweb/css/style.css">
<!--[if lt IE 9]>
<script src="/static/backweb/js/html5.js"></script>
<![endif]-->
<script src="/static/backweb/js/jquery.js"></script>
<script src="/static/backweb/js/jquery.mCustomScrollbar.concat.min.js"></script>
<script>

	(function($){
		$(window).load(function(){
			
			$("a[rel='load-content']").click(function(e){
				e.preventDefault();
				var url=$(this).attr("href");
				$.get(url,function(data){
					$(".content .mCSB_container").append(data); //load new content inside .mCSB_container
					//scroll-to appended content 
					$(".content").mCustomScrollbar("scrollTo","h2:last");
				});
			});
			
			$(".content").delegate("a[href='top']","click",function(e){
				e.preventDefault();
				$(".content").mCustomScrollbar("scrollTo",$(this).attr("href"));
			});
			
		});
	})(jQuery);
</script>
    {% block extCss %}
    {% endblock %}
</head>
<body>
<!--header-->
<header>
<h1><img src="/static/backweb/images/admin_logo.png"/></h1>
	<ul class="rt_nav">
		<li><a href="{% url 'game:index' %}" target="_blank" class="website_icon">站点首页</a></li>
		<li><a href="#" class="set_icon">账号设置</a></li>
		<li><a href="{% url 'backweb:my_logout' %}" class="quit_icon">安全退出</a></li>
	</ul>
</header>
<!--aside nav-->
<!--aside nav-->
<aside class="lt_aside_nav content mCustomScrollbar">
	<h2><a href="{% url 'backweb:index' %}">起始页</a></h2>
	<ul>
		<li>
		<dl>
{#            {% if user.is_superuser %}#}
			<dt>后台管理</dt>
    		<dd><a href="{% url 'backweb:edit' %}">添加文章</a></dd>
            <dd><a href="user_detail.html">删除文章</a></dd>
            <dd><a href="{% url 'backweb:listuser' %}">用户列表</a></dd>
			<dd><a href="{% url 'backweb:addadmin' %}">添加用户</a></dd>
			<dd><a href="{% url 'backweb:roleper' %}">添加角色权限</a></dd>
			<dd><a href="{% url 'backweb:userrole' %}">用户角色权限</a></dd>
{#            {% endif %}#}
            {% if 'ADDARTICLE' in user.user_permissions %}
                <dd><a href="{% url 'backweb:edit' %}">添加文章</a></dd>
            {% else %}
                <dd><a href="">权限不足</a></dd>
            {% endif %}

    	</dl>
  	 	</li>
 	</ul>
</aside>

{% block content %}
{% endblock %}
</body>
</html>